//
//  NetDrives.m
//  carcareIOS
//
//  Created by ileo on 16/3/3.
//  Copyright © 2016年 baozun. All rights reserved.
//

#import "NetDrives.h"
#import "AIUserInfo.h"
#import "NetEngineServer.h"

@implementation NetDrives

+(NetDrives *)drivesWithDate:(NSString *)date{

    return [__SELF request:@"/travels/gettravelsbyday" withParams:@{@"imei":USERINFO.pastDevice,@"dayTime":date} type:REQUEST_POST];
}
+ (NetDrives *)wayGpsInfosFrom:(NSString *)startTime to:(NSString *)endTime
{
    return [__SELF request:@"/travels/gpsTrack" withParams:@{@"imei":USERINFO.pastDevice,@"startTime":startTime, @"endTime":endTime} type:REQUEST_POST];
}
-(NSDictionary *)requestCommonParams{
    if (![USERINFO.session isNotNil]) {
        return nil;
    }
    return @{@"userid":@(USERINFO.userID),@"session":USERINFO.session};
}

@end
